package com.frxuexi.park2209_2.adapter

import android.content.res.Resources
import android.graphics.BitmapFactory
import android.view.RoundedCorner
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.base.bean.BaseMenu
import com.frxuexi.base.bean.Menu
import com.frxuexi.park2209_2.R

class MenusAdapter:BaseQuickAdapter<Menu,BaseViewHolder>(R.layout.item_citymenu) {
    override fun convert(helper: BaseViewHolder, item: Menu) {
        helper.setText(R.id.cm_title,item.desc)
        val iv = helper.getView<ImageView>(R.id.cm_img)
//        Glide.with(context).load(BitmapFactory.decodeResource(context.resources,R.drawable.ic_launcher_background))
//            .circleCrop().into(iv)
    }
}